package o;

import com.huawei.appgallery.productpurchase.impl.server.ProductDeliveryResBean;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class crv implements IServerCallBack {
    private String ˏ;

    public crv(String str) {
        this.ˏ = str;
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean.getResponseCode() == 0) {
            int i = (responseBean.getRtnCode_() == 0 || responseBean.getRtnCode_() == 600011 || responseBean.getRtnCode_() == 600012) ? 1 : 0;
            if (i != 0) {
                crf.ˎ.ˋ("ProductDeliveryCallBack", "Delivery Success.");
                cro.ˏ().ˎ(((ProductDeliveryResBean) responseBean).ˎ(), this.ˏ);
                return;
            }
            crf.ˎ.ˏ("ProductDeliveryCallBack", "DeliveryErrorCode=" + responseBean.getRtnCode_());
            cro.ˏ().ˏ(1);
            return;
        }
        crf.ˎ.ˏ("ProductDeliveryCallBack", "DeliveryErrorCode=" + responseBean.getRtnCode_());
        cro.ˏ().ˏ(1);
    }
}
